﻿using System;

class LeapYear
{
    static void Main()
    {
        //Exercise 1.
        //Write a program that reads a year from the console and checks whether it is a leap. Use DateTime.

        Console.Write("Enter the date [format YYYY, MM, DD]:  ");
        
        string date = Console.ReadLine();
        DateTime dateYear = DateTime.Parse(date);

        int year = dateYear.Year;

        Console.WriteLine("Is {0} a leap year:  {1}", year, DateTime.IsLeapYear(year));

    }
}

